<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/layout/commonLayout.xhtml">
	<ui:define name="content">
		<script type="text/javascript">
	tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontselect,fontsizeselect,|,forecolor,|,image",
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		theme_advanced_toolbar_location : "top"
	});
</script>
		Assunto: <h:inputText styleClass="inputText" id="assunto"
			value="#{mensagemMB.mensagem.assunto}" />
		<h:commandButton value="Salvar" action="#{mensagemMB.mensagem.save}">
			<f:attribute name="next" value="mensagemMB.pageLoad" />
			<f:attribute name="msg"
				value="Mensagem #{mensagemMB.mensagem.assunto} registrada com sucesso" />
		</h:commandButton>
		<br />
		<br />
		<h:inputTextarea id="textArea" value="#{mensagemMB.mensagem.html}" />
	</ui:define>
</ui:composition>
</html>
